The Dreamweaver JavaScript API > CSS style functions > dom.removeCSSStyle() |
![]() ![]() ![]() |
Availability
Dreamweaver 3.0
Description
Removes the CLASS
or ID
attribute from the specified element, or removes the SPAN
tag that completely surrounds the specified element. This function is valid only for the active document.
Arguments
elementNode
, {classOrID}
![]() |
elementNode is an element node in the DOM. If elementNode is specified as an empty string (''), the function acts on the current selection. |
![]() |
classOrID is the attribute that should be removed (either "class" or "id" ). If classOrID is not specified, it defaults to "class" . If no CLASS attribute is defined for elementNode , then the SPAN tag surrounding elementNode is removed. |
Returns
Nothing.
Enabler
None.
![]() ![]() ![]() |